const {
    Random
  } = require("mockjs")
  const Mock = require("mockjs")
  const Hotel = require("../model/likeygood")
  
  
  //创建数据的函数
  async function likeygoodData() {
    //酒店列表数据
    const {
        likeygoodList
    } = Mock.mock({
      "hotelList|20": [{
        
      }]
    })
    const res = await Promise.all(
      hotelList.map((item) => {
        // console.log(item);
        return Hotel.create(item)
      })
    )
  }
  
  
  module.exports = hotelData